<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="image" tagdir="/WEB-INF/tags/product"%>
<title><fmt:message key="carrierList.title" />
</title>
<form class="mainForm" name="carrierListFrm" method="post" >
	<div class="data">
		<div class="top clearfix">
			<ul class="tab">
				<li class="curr">
					<span><fmt:message key="menu.carrierList" />
					</span>
				</li>
			</ul>
			<%@include file="/common/pagingOnlyTop.jsp"%>
		</div>
		<input type="hidden" name="doAction" value="" />
		<content tag="buttons">
		<probiz:iconBtn btnType="add"
			onclick="location.href='${ctxPath}/system/carrier.html?doAction=add&&from=list'" />
		<probiz:iconBtn btnType="delete" onclick="return fnDoMultiDelete(this);" />
		</content>

		<c:set var="checkAll">
			<input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 0px" />
		</c:set>

		<display:table name="${carrierList}" cellspacing="0" cellpadding="0" uid="carrier"
			class="list_table" export="false" requestURI="">
			<display:column title="${checkAll}" media="html" style="width:1%">
				<input type="checkbox" name="multiIds" value="<c:out value="${carrier.carrierId}"/>"
					title="${carrier.carrierName}" />
			</display:column>
			<display:column media="html" sortable="false" style="width:8%"
				decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="carrier.transportComIcon">
				<img src="${mediaPath}${carrier.logo}" id="image" height="55" width="75" onerror="$j(this).attr('originsrc',this.src);this.onerror='';this.src=__defaultImage_brand" originsrc=""/>
			</display:column>
			<display:column style="width:15%" sortable="true" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="shippingMethod.companyName">
				<a href="${ctxPath }/system/carrier.html?doAction=edit&carrierId=${carrier.carrierId}">
					${carrier.carrierName}</a>
			</display:column>
			<display:column style="width:25%" sortable="true" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="carrier.websiteUrl">
				${carrier.websiteUrl}
			</display:column>
			<display:column sortable="true" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="carrier.companyAddressName">
				<c:if test="${not empty carrier.carrierAddress}">
					<fmt:message key="carrier.companyAddress" />: ${carrier.carrierAddress}
				</c:if>
				<c:if test="${not empty carrier.carrierAddress2}">
					<br />
					<br />
					<fmt:message key="carrier.companyAddress2" />: ${carrier.carrierAddress2}
				</c:if>
			</display:column>
			<display:column style="width:10%" sortable="true" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="carrier.linkman">
				${carrier.linkman}
			</display:column>
			<display:column style="width:10%" sortable="true" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
				titleKey="carrier.telephone">
				${carrier.telephone}
			</display:column>
		</display:table>
		<%@include file="/common/pagingOnly.jsp"%>
	</div>
</form>

<script type="text/javascript">
$j(document).ready(function () {
	highlightTableRows("carrier");
});	
</script>